
pub mod maths_utils;


use maths_utils::{round_num, round_num_str};

pub fn test_math() {
    
    // println!("打印result1: {}", round_num(128372.1297245120, 5));
    // println!("打印result2: {}", round_num(128372.1297245120, 4));
    // println!("打印result3: {}", round_num(128372.1297245120, 3));
    // println!("打印result4: {}", round_num(128372.1297245120, 2));
    // println!("打印result5: {}", round_num(128372.1297245120, 1));

    println!("打印result1: {}", round_num_str(128372.12, 5));
    println!("打印result3: {}", round_num_str(128372.1297245120, 3));
    println!("打印result4: {}", round_num_str(128372.1297245120, 2));
    println!("打印result5: {}", round_num_str(128372.1297245120, 1));
}





